Skip to content

rust: wait for any frame in the lifecycle tests - #1953

Merged
simonklee merged 1 commit into
mainfrom
harden/447-windows-lifecycle-first-frame
Nov 9, 2026
Merged

simonklee merged 1 commit into
mainfrom
harden/447-windows-lifecycle-first-frame

Conversation

@simonklee

Copy link
Copy Markdown
Member

The first Windows run of the Rust tests timed out waiting for "lifecycle frame 1" in --app mode, although the fixture drew that frame. App draws again when the terminal answers a startup query, and Windows' pseudoconsole answers DA1 and DECRQM itself, so frame 2 follows within milliseconds. The pseudoconsole sends its screen on its own tick, not each frame, so that run only ever showed frame 2.

The lifecycle tests now wait for any frame: they only need the fixture to be up. Apps are not affected; the second frame shows the same screen. The frame counts in pty-smoke.py stay exact on Linux and macOS, where the pseudo-terminal forwards every byte and answers no query.

Tested with the Rust checks on Linux, 25 smoke runs, and the lifecycle tests on Windows 11; with the fixture's first visible frame numbered 2, the old waits fail and the new ones pass.

The first Windows run of the Rust tests timed out waiting for
"lifecycle frame 1" in --app mode, although the fixture drew it. App
draws again when the terminal answers a startup query, and Windows'
pseudoconsole answers DA1 and DECRQM itself, so frame 2 follows within
milliseconds. The pseudoconsole sends its screen on its own tick, not
each frame, and that run only ever showed frame 2.

The tests now wait for any frame. They only need the fixture to be up;
the frame numbers pty-smoke.py counts stay exact on Unix, where the
pseudo-terminal forwards every byte and answers no query.

Tests +3 lines: a named constant whose comment says why the number is
left out, used by the six waits.

Issue: 447
@simonklee
simonklee requested a review from kommander as a code owner November 9, 2026 01:41
@simonklee
simonklee merged commit 4bc02a0 into main Nov 9, 2026
26 checks passed
@simonklee
simonklee deleted the harden/447-windows-lifecycle-first-frame branch November 9, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant